package cn.ilikes.tools.nosql.jpa.graphs;

public class NodeLifeCycle {

	public enum LifeCycle {
		newses, managed, detached, removed;
	}

	private LifeCycle lifeCycle;

	public NodeLifeCycle(LifeCycle lifeCycle) {
		this.lifeCycle = lifeCycle;
	}

	public boolean isLifeCycle(LifeCycle lifeCycle) {
		return this.lifeCycle.equals(lifeCycle);
	}

	public LifeCycle getLifeCycle() {
		return lifeCycle;
	}

	public void setLifeCycle(LifeCycle lifeCycle) {
		this.lifeCycle = lifeCycle;
	}

}
